//
//  HNLogicCenter.m
//  HeroNuts
//
//  Created by Huo Ju on 11-4-13.
//  Copyright 2011年 TongJi. All rights reserved.
//

#import "HNLogicCenter.h"


@implementation HNLogicCenter
@synthesize actionQueue = actionQueue_;
-(void)dealloc
{
    [actionQueue_ release];
    [super dealloc];
}

-(id)init
{
    if ((self = [super init])) {
        NSLog(@"!!"); 
        actionQueue_ = [[NSMutableArray alloc] init];
    }
    return self;
}

-(NSMutableArray *) getActionQueue
{
    return actionQueue_;
}

-(void) addObject:(id)object forKey:(NSString*)key
{
    id action = [[NSMutableDictionary alloc] init];
    [action setObject:object forKey:key];
    [actionQueue_ addObject:action];
    [action release];
    
}
-(HNActionQueue *) actorA:(HNActor *)a attackActorB:(HNActor *)b
{NSLog(@"!!"); return 0;}
@end
